import axios from "axios";
import { getSessionStorage } from "./common";

axios.interceptors.request.use(function(config){

    let token = getSessionStorage('token')
    if(token){
        config.headers.token = token
    }
    return config
},function(error){
    return Promise.reject(error)
})

export default axios